package com.fulihui.systemcore.dal.dataobj;

import java.util.ArrayList;
import java.util.List;

public class ApiTemplateExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Integer offset;

    public ApiTemplateExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andApiCodeIsNull() {
            addCriterion("api_code is null");
            return (Criteria) this;
        }

        public Criteria andApiCodeIsNotNull() {
            addCriterion("api_code is not null");
            return (Criteria) this;
        }

        public Criteria andApiCodeEqualTo(String value) {
            addCriterion("api_code =", value, "apiCode");
            return (Criteria) this;
        }

        public Criteria andApiCodeNotEqualTo(String value) {
            addCriterion("api_code <>", value, "apiCode");
            return (Criteria) this;
        }

        public Criteria andApiCodeGreaterThan(String value) {
            addCriterion("api_code >", value, "apiCode");
            return (Criteria) this;
        }

        public Criteria andApiCodeGreaterThanOrEqualTo(String value) {
            addCriterion("api_code >=", value, "apiCode");
            return (Criteria) this;
        }

        public Criteria andApiCodeLessThan(String value) {
            addCriterion("api_code <", value, "apiCode");
            return (Criteria) this;
        }

        public Criteria andApiCodeLessThanOrEqualTo(String value) {
            addCriterion("api_code <=", value, "apiCode");
            return (Criteria) this;
        }

        public Criteria andApiCodeLike(String value) {
            addCriterion("api_code like", value, "apiCode");
            return (Criteria) this;
        }

        public Criteria andApiCodeNotLike(String value) {
            addCriterion("api_code not like", value, "apiCode");
            return (Criteria) this;
        }

        public Criteria andApiCodeIn(List<String> values) {
            addCriterion("api_code in", values, "apiCode");
            return (Criteria) this;
        }

        public Criteria andApiCodeNotIn(List<String> values) {
            addCriterion("api_code not in", values, "apiCode");
            return (Criteria) this;
        }

        public Criteria andApiCodeBetween(String value1, String value2) {
            addCriterion("api_code between", value1, value2, "apiCode");
            return (Criteria) this;
        }

        public Criteria andApiCodeNotBetween(String value1, String value2) {
            addCriterion("api_code not between", value1, value2, "apiCode");
            return (Criteria) this;
        }

        public Criteria andTargetUrlIsNull() {
            addCriterion("target_url is null");
            return (Criteria) this;
        }

        public Criteria andTargetUrlIsNotNull() {
            addCriterion("target_url is not null");
            return (Criteria) this;
        }

        public Criteria andTargetUrlEqualTo(String value) {
            addCriterion("target_url =", value, "targetUrl");
            return (Criteria) this;
        }

        public Criteria andTargetUrlNotEqualTo(String value) {
            addCriterion("target_url <>", value, "targetUrl");
            return (Criteria) this;
        }

        public Criteria andTargetUrlGreaterThan(String value) {
            addCriterion("target_url >", value, "targetUrl");
            return (Criteria) this;
        }

        public Criteria andTargetUrlGreaterThanOrEqualTo(String value) {
            addCriterion("target_url >=", value, "targetUrl");
            return (Criteria) this;
        }

        public Criteria andTargetUrlLessThan(String value) {
            addCriterion("target_url <", value, "targetUrl");
            return (Criteria) this;
        }

        public Criteria andTargetUrlLessThanOrEqualTo(String value) {
            addCriterion("target_url <=", value, "targetUrl");
            return (Criteria) this;
        }

        public Criteria andTargetUrlLike(String value) {
            addCriterion("target_url like", value, "targetUrl");
            return (Criteria) this;
        }

        public Criteria andTargetUrlNotLike(String value) {
            addCriterion("target_url not like", value, "targetUrl");
            return (Criteria) this;
        }

        public Criteria andTargetUrlIn(List<String> values) {
            addCriterion("target_url in", values, "targetUrl");
            return (Criteria) this;
        }

        public Criteria andTargetUrlNotIn(List<String> values) {
            addCriterion("target_url not in", values, "targetUrl");
            return (Criteria) this;
        }

        public Criteria andTargetUrlBetween(String value1, String value2) {
            addCriterion("target_url between", value1, value2, "targetUrl");
            return (Criteria) this;
        }

        public Criteria andTargetUrlNotBetween(String value1, String value2) {
            addCriterion("target_url not between", value1, value2, "targetUrl");
            return (Criteria) this;
        }

        public Criteria andHttpMethodIsNull() {
            addCriterion("http_method is null");
            return (Criteria) this;
        }

        public Criteria andHttpMethodIsNotNull() {
            addCriterion("http_method is not null");
            return (Criteria) this;
        }

        public Criteria andHttpMethodEqualTo(String value) {
            addCriterion("http_method =", value, "httpMethod");
            return (Criteria) this;
        }

        public Criteria andHttpMethodNotEqualTo(String value) {
            addCriterion("http_method <>", value, "httpMethod");
            return (Criteria) this;
        }

        public Criteria andHttpMethodGreaterThan(String value) {
            addCriterion("http_method >", value, "httpMethod");
            return (Criteria) this;
        }

        public Criteria andHttpMethodGreaterThanOrEqualTo(String value) {
            addCriterion("http_method >=", value, "httpMethod");
            return (Criteria) this;
        }

        public Criteria andHttpMethodLessThan(String value) {
            addCriterion("http_method <", value, "httpMethod");
            return (Criteria) this;
        }

        public Criteria andHttpMethodLessThanOrEqualTo(String value) {
            addCriterion("http_method <=", value, "httpMethod");
            return (Criteria) this;
        }

        public Criteria andHttpMethodLike(String value) {
            addCriterion("http_method like", value, "httpMethod");
            return (Criteria) this;
        }

        public Criteria andHttpMethodNotLike(String value) {
            addCriterion("http_method not like", value, "httpMethod");
            return (Criteria) this;
        }

        public Criteria andHttpMethodIn(List<String> values) {
            addCriterion("http_method in", values, "httpMethod");
            return (Criteria) this;
        }

        public Criteria andHttpMethodNotIn(List<String> values) {
            addCriterion("http_method not in", values, "httpMethod");
            return (Criteria) this;
        }

        public Criteria andHttpMethodBetween(String value1, String value2) {
            addCriterion("http_method between", value1, value2, "httpMethod");
            return (Criteria) this;
        }

        public Criteria andHttpMethodNotBetween(String value1, String value2) {
            addCriterion("http_method not between", value1, value2, "httpMethod");
            return (Criteria) this;
        }

        public Criteria andContentTypeIsNull() {
            addCriterion("content_type is null");
            return (Criteria) this;
        }

        public Criteria andContentTypeIsNotNull() {
            addCriterion("content_type is not null");
            return (Criteria) this;
        }

        public Criteria andContentTypeEqualTo(String value) {
            addCriterion("content_type =", value, "contentType");
            return (Criteria) this;
        }

        public Criteria andContentTypeNotEqualTo(String value) {
            addCriterion("content_type <>", value, "contentType");
            return (Criteria) this;
        }

        public Criteria andContentTypeGreaterThan(String value) {
            addCriterion("content_type >", value, "contentType");
            return (Criteria) this;
        }

        public Criteria andContentTypeGreaterThanOrEqualTo(String value) {
            addCriterion("content_type >=", value, "contentType");
            return (Criteria) this;
        }

        public Criteria andContentTypeLessThan(String value) {
            addCriterion("content_type <", value, "contentType");
            return (Criteria) this;
        }

        public Criteria andContentTypeLessThanOrEqualTo(String value) {
            addCriterion("content_type <=", value, "contentType");
            return (Criteria) this;
        }

        public Criteria andContentTypeLike(String value) {
            addCriterion("content_type like", value, "contentType");
            return (Criteria) this;
        }

        public Criteria andContentTypeNotLike(String value) {
            addCriterion("content_type not like", value, "contentType");
            return (Criteria) this;
        }

        public Criteria andContentTypeIn(List<String> values) {
            addCriterion("content_type in", values, "contentType");
            return (Criteria) this;
        }

        public Criteria andContentTypeNotIn(List<String> values) {
            addCriterion("content_type not in", values, "contentType");
            return (Criteria) this;
        }

        public Criteria andContentTypeBetween(String value1, String value2) {
            addCriterion("content_type between", value1, value2, "contentType");
            return (Criteria) this;
        }

        public Criteria andContentTypeNotBetween(String value1, String value2) {
            addCriterion("content_type not between", value1, value2, "contentType");
            return (Criteria) this;
        }

        public Criteria andInencodingIsNull() {
            addCriterion("inencoding is null");
            return (Criteria) this;
        }

        public Criteria andInencodingIsNotNull() {
            addCriterion("inencoding is not null");
            return (Criteria) this;
        }

        public Criteria andInencodingEqualTo(String value) {
            addCriterion("inencoding =", value, "inencoding");
            return (Criteria) this;
        }

        public Criteria andInencodingNotEqualTo(String value) {
            addCriterion("inencoding <>", value, "inencoding");
            return (Criteria) this;
        }

        public Criteria andInencodingGreaterThan(String value) {
            addCriterion("inencoding >", value, "inencoding");
            return (Criteria) this;
        }

        public Criteria andInencodingGreaterThanOrEqualTo(String value) {
            addCriterion("inencoding >=", value, "inencoding");
            return (Criteria) this;
        }

        public Criteria andInencodingLessThan(String value) {
            addCriterion("inencoding <", value, "inencoding");
            return (Criteria) this;
        }

        public Criteria andInencodingLessThanOrEqualTo(String value) {
            addCriterion("inencoding <=", value, "inencoding");
            return (Criteria) this;
        }

        public Criteria andInencodingLike(String value) {
            addCriterion("inencoding like", value, "inencoding");
            return (Criteria) this;
        }

        public Criteria andInencodingNotLike(String value) {
            addCriterion("inencoding not like", value, "inencoding");
            return (Criteria) this;
        }

        public Criteria andInencodingIn(List<String> values) {
            addCriterion("inencoding in", values, "inencoding");
            return (Criteria) this;
        }

        public Criteria andInencodingNotIn(List<String> values) {
            addCriterion("inencoding not in", values, "inencoding");
            return (Criteria) this;
        }

        public Criteria andInencodingBetween(String value1, String value2) {
            addCriterion("inencoding between", value1, value2, "inencoding");
            return (Criteria) this;
        }

        public Criteria andInencodingNotBetween(String value1, String value2) {
            addCriterion("inencoding not between", value1, value2, "inencoding");
            return (Criteria) this;
        }

        public Criteria andOutencodingIsNull() {
            addCriterion("outencoding is null");
            return (Criteria) this;
        }

        public Criteria andOutencodingIsNotNull() {
            addCriterion("outencoding is not null");
            return (Criteria) this;
        }

        public Criteria andOutencodingEqualTo(String value) {
            addCriterion("outencoding =", value, "outencoding");
            return (Criteria) this;
        }

        public Criteria andOutencodingNotEqualTo(String value) {
            addCriterion("outencoding <>", value, "outencoding");
            return (Criteria) this;
        }

        public Criteria andOutencodingGreaterThan(String value) {
            addCriterion("outencoding >", value, "outencoding");
            return (Criteria) this;
        }

        public Criteria andOutencodingGreaterThanOrEqualTo(String value) {
            addCriterion("outencoding >=", value, "outencoding");
            return (Criteria) this;
        }

        public Criteria andOutencodingLessThan(String value) {
            addCriterion("outencoding <", value, "outencoding");
            return (Criteria) this;
        }

        public Criteria andOutencodingLessThanOrEqualTo(String value) {
            addCriterion("outencoding <=", value, "outencoding");
            return (Criteria) this;
        }

        public Criteria andOutencodingLike(String value) {
            addCriterion("outencoding like", value, "outencoding");
            return (Criteria) this;
        }

        public Criteria andOutencodingNotLike(String value) {
            addCriterion("outencoding not like", value, "outencoding");
            return (Criteria) this;
        }

        public Criteria andOutencodingIn(List<String> values) {
            addCriterion("outencoding in", values, "outencoding");
            return (Criteria) this;
        }

        public Criteria andOutencodingNotIn(List<String> values) {
            addCriterion("outencoding not in", values, "outencoding");
            return (Criteria) this;
        }

        public Criteria andOutencodingBetween(String value1, String value2) {
            addCriterion("outencoding between", value1, value2, "outencoding");
            return (Criteria) this;
        }

        public Criteria andOutencodingNotBetween(String value1, String value2) {
            addCriterion("outencoding not between", value1, value2, "outencoding");
            return (Criteria) this;
        }

        public Criteria andConnectionTimeoutIsNull() {
            addCriterion("connection_timeout is null");
            return (Criteria) this;
        }

        public Criteria andConnectionTimeoutIsNotNull() {
            addCriterion("connection_timeout is not null");
            return (Criteria) this;
        }

        public Criteria andConnectionTimeoutEqualTo(Long value) {
            addCriterion("connection_timeout =", value, "connectionTimeout");
            return (Criteria) this;
        }

        public Criteria andConnectionTimeoutNotEqualTo(Long value) {
            addCriterion("connection_timeout <>", value, "connectionTimeout");
            return (Criteria) this;
        }

        public Criteria andConnectionTimeoutGreaterThan(Long value) {
            addCriterion("connection_timeout >", value, "connectionTimeout");
            return (Criteria) this;
        }

        public Criteria andConnectionTimeoutGreaterThanOrEqualTo(Long value) {
            addCriterion("connection_timeout >=", value, "connectionTimeout");
            return (Criteria) this;
        }

        public Criteria andConnectionTimeoutLessThan(Long value) {
            addCriterion("connection_timeout <", value, "connectionTimeout");
            return (Criteria) this;
        }

        public Criteria andConnectionTimeoutLessThanOrEqualTo(Long value) {
            addCriterion("connection_timeout <=", value, "connectionTimeout");
            return (Criteria) this;
        }

        public Criteria andConnectionTimeoutIn(List<Long> values) {
            addCriterion("connection_timeout in", values, "connectionTimeout");
            return (Criteria) this;
        }

        public Criteria andConnectionTimeoutNotIn(List<Long> values) {
            addCriterion("connection_timeout not in", values, "connectionTimeout");
            return (Criteria) this;
        }

        public Criteria andConnectionTimeoutBetween(Long value1, Long value2) {
            addCriterion("connection_timeout between", value1, value2, "connectionTimeout");
            return (Criteria) this;
        }

        public Criteria andConnectionTimeoutNotBetween(Long value1, Long value2) {
            addCriterion("connection_timeout not between", value1, value2, "connectionTimeout");
            return (Criteria) this;
        }

        public Criteria andSoTimeoutIsNull() {
            addCriterion("so_timeout is null");
            return (Criteria) this;
        }

        public Criteria andSoTimeoutIsNotNull() {
            addCriterion("so_timeout is not null");
            return (Criteria) this;
        }

        public Criteria andSoTimeoutEqualTo(Long value) {
            addCriterion("so_timeout =", value, "soTimeout");
            return (Criteria) this;
        }

        public Criteria andSoTimeoutNotEqualTo(Long value) {
            addCriterion("so_timeout <>", value, "soTimeout");
            return (Criteria) this;
        }

        public Criteria andSoTimeoutGreaterThan(Long value) {
            addCriterion("so_timeout >", value, "soTimeout");
            return (Criteria) this;
        }

        public Criteria andSoTimeoutGreaterThanOrEqualTo(Long value) {
            addCriterion("so_timeout >=", value, "soTimeout");
            return (Criteria) this;
        }

        public Criteria andSoTimeoutLessThan(Long value) {
            addCriterion("so_timeout <", value, "soTimeout");
            return (Criteria) this;
        }

        public Criteria andSoTimeoutLessThanOrEqualTo(Long value) {
            addCriterion("so_timeout <=", value, "soTimeout");
            return (Criteria) this;
        }

        public Criteria andSoTimeoutIn(List<Long> values) {
            addCriterion("so_timeout in", values, "soTimeout");
            return (Criteria) this;
        }

        public Criteria andSoTimeoutNotIn(List<Long> values) {
            addCriterion("so_timeout not in", values, "soTimeout");
            return (Criteria) this;
        }

        public Criteria andSoTimeoutBetween(Long value1, Long value2) {
            addCriterion("so_timeout between", value1, value2, "soTimeout");
            return (Criteria) this;
        }

        public Criteria andSoTimeoutNotBetween(Long value1, Long value2) {
            addCriterion("so_timeout not between", value1, value2, "soTimeout");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}